<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>sinocare</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
		<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
		<link rel="stylesheet" href="../css/font.css">
		<link rel="stylesheet" href="../css/xadmin.css">
		<script src="../js/jquery.min.js"></script>
		<script type="text/javascript" src="../lib/layui/layui.js" charset="utf-8"></script>
		<script type="text/javascript" src="../js/xadmin.js"></script>
		<script src="../js/echarts.min.js"></script>
<script src="../js/dark.js"></script>
<script src="../js/infographic.js"></script></head>
		<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
		<!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
	</head>

	<body class="layui-anim layui-anim-up">
		<div class="x-nav">
			<span class="layui-breadcrumb">
        <a href="">首页</a>
        <a href="">报表管理</a>
        <a>
          <cite>检测指标统览</cite></a>
      </span>
			<a class="layui-btn layui-btn-primary layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
				<i class="layui-icon" style="line-height:38px">ဂ</i></a>
		</div>
		<div class="x-body">
				<div class="layui-row layui-bg-gray"><br />
					<form class="layui-form layui-col-md12 x-so" style="width: 1000px;">
						

							<div class="layui-inline" style="text-align: center;">
								<label for="L_pass" class="layui-form-label">异常指标</label>
								<div class="layui-input-inline">
									<select name="province" lay-filter="province">
										<option value="">血糖</option>
									</select>
								</div>
							</div>
							<div class="layui-inline">
								<label for="L_pass" class="layui-form-label">	所属总店 </label>
								<div class="layui-input-inline">
									<select name="province" lay-filter="province">
										<option value="">北京同仁堂总店</option>
									</select>
							</div>
							</div>
							<div class="layui-inline">
								<label for="L_pass" class="layui-form-label">	 所属分店</label>
								<div class="layui-input-inline">
									<select name="province" lay-filter="province">
										<option value="">同仁堂分店1</option>
									</select>
								</div>
							</div>
							<br/><br/>
							<div class="layui-inline">
								<label for="L_pass" class="layui-form-label">	年龄段</label>
								<div class="layui-input-inline">
									<select name="province" lay-filter="province">
										<option value="">全部</option>
									</select>
								</div>
							</div>
							<div class="layui-inline">
								<label for="L_pass" class="layui-form-label">	性别</label>
								<div class="layui-input-inline">
									
									<select name="province" lay-filter="province">
										<option value="">全部</option>
									</select>
								</div>
							</div>
								<div class="layui-inline">
								<label for="L_pass" class="layui-form-label">	筛选日期</label>
								<div class="layui-input-inline">
									  <input class="layui-input" placeholder="开始日" name="start" id="start">
          <input class="layui-input" placeholder="截止日" name="end" id="end">
								</div>
							</div>
						
					</form><br />
							<div class="layui-inline" style="margin-left: 960px; margin-top: -106px; ">
<button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i>查询</button>
<button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>重置</button>
<button class="layui-btn" ><i class="layui-icon"></i>导出报表</button></div>	
				</div>
	
		

		<!-- 为 ECharts 准备一个具备大小（宽高）的 DOM -->
	<div id="myChart" style="width: 800px; height: 500px; margin-left: 300px;"></div>
			

		</div>
		<script>
			layui.use('laydate', function() {
				var laydate = layui.laydate;

				//执行一个laydate实例
				laydate.render({
					elem: '#start' //指定元素
				});

				//执行一个laydate实例
				laydate.render({
					elem: '#end' //指定元素
				});
			});

			/*用户-停用*/
			function member_stop(obj, id) {
				layer.confirm('确认要停用吗？', function(index) {

					if($(obj).attr('title') == '启用') {

						//发异步把用户状态进行更改
						$(obj).attr('title', '停用')
						$(obj).find('i').html('&#xe62f;');

						$(obj).parents("tr").find(".td-status").find('span').addClass('layui-btn-disabled').html('已停用');
						layer.msg('已停用!', {
							icon: 5,
							time: 1000
						});

					} else {
						$(obj).attr('title', '启用')
						$(obj).find('i').html('&#xe601;');

						$(obj).parents("tr").find(".td-status").find('span').removeClass('layui-btn-disabled').html('已启用');
						layer.msg('已启用!', {
							icon: 5,
							time: 1000
						});
					}

				});
			}

			/*用户-删除*/
			function member_del(obj, id) {
				layer.confirm('确认要删除吗？', function(index) {
					//发异步删除数据
					$(obj).parents("tr").remove();
					layer.msg('已删除!', {
						icon: 1,
						time: 1000
					});
				});
			}

			function delAll(argument) {

				var data = tableCheck.getData();

				layer.confirm('确认要删除吗？' + data, function(index) {
					//捉到所有被选中的，发异步进行删除
					layer.msg('删除成功', {
						icon: 1
					});
					$(".layui-form-checked").not('.header').parents('tr').remove();
				});
			}
		</script>
		
	</body>

</html>
<script type="text/javascript">
		// 基于准备好的dom，指定样式infographic,初始化echarts实例
		var myChart = echarts.init(document.getElementById('myChart'),
				'infographic');

var colors = ['#007DDB', '#EEA236', '#869FB1'];

option = {
    color: colors,

    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'cross'
        }
    },
    grid: {
        right: '20%'
    },
    toolbox: {
        feature: {
            dataView: {show: true, readOnly: false},
            restore: {show: true},
            saveAsImage: {show: true}
        }
    },
    legend: {
        data:['男','女','合计']
    },
    xAxis: [
        {
            type: 'category',
            axisTick: {
                alignWithLabel: true
            },
            data: ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月']
        }
    ],
    yAxis: [
  
        {
            type: 'value',
            name: '血糖异常数据表（10.9----10.27）',
            min: 0,
            max: 19,
            position: 'left',
            axisLine: {
                lineStyle: {
                    color: colors[2]
                }
            },
            axisLabel: {
                formatter: '{value}'
            }
        }
    ],
    series: [
        {
            name:'男',
            type:'bar',
              yAxisIndex: 0,
            data:[3, 6,1, 12, 4, 1, 7, 5, 1, 4, 6, 2]
        },
        {
            name:'女',
            type:'bar',
            yAxisIndex: 0,
          data:[3, 3,9, 5, 6, 3, 0, 11, 5, 5, 9, 1]
        },
        {
            name:'合计',
            type:'bar',
            yAxisIndex: 0,
        data:[6, 9,10, 17, 10, 4, 7, 16, 6, 9, 15, 3]
        }
    ]
};

	<!--使用指定的配置项和数据显示图表-->
		myChart.setOption(option);
</script>
